package com.ssrs.elasticsearch.priv;


import com.ssrs.elasticsearch.ElasticsearchPlugin;
import com.ssrs.framework.extend.annotation.ExtendItem;
import com.ssrs.platform.extend.MenuPrivService;
import com.ssrs.platform.priv.AbstractMenuPriv;

/**
 * @author ssrs
 */
@ExtendItem(
        plugin = ElasticsearchPlugin.class,
        extendService = MenuPrivService.class,
        description = "索引管理权限项"
)
public class IndicesManagerPriv extends AbstractMenuPriv {

    public static final String MENU_ID = "ElasticSearch.IndicesManager";

    public static final String INDEX_REBUILD = MENU_ID + ".IndexRebuild";          // 索引重建
    public static final String INDEX_RELEASE_LOCK = MENU_ID + ".IndexReleaseLock"; // 锁释放

    public IndicesManagerPriv() {
        super(MENU_ID, "索引管理", null);
        addItem(INDEX_REBUILD, "索引重建");
        addItem(INDEX_RELEASE_LOCK, "锁释放");
    }
}
